package com.ruoyi.gams.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gams.mapper.GamsScoringMapper;
import com.ruoyi.gams.domain.GamsScoring;
import com.ruoyi.gams.service.IGamsScoringService;

/**
 * 评价打分记录Service业务层处理
 *
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class GamsScoringServiceImpl implements IGamsScoringService
{
    @Autowired
    private GamsScoringMapper gamsScoringMapper;

    /**
     * 查询评价打分记录
     *
     * @param id 评价打分记录主键
     * @return 评价打分记录
     */
    @Override
    public GamsScoring selectGamsScoringById(Integer id)
    {
        return gamsScoringMapper.selectGamsScoringById(id);
    }

    /**
     * 查询评价打分记录列表
     *
     * @param gamsScoring 评价打分记录
     * @return 评价打分记录
     */
    @Override
    public List<GamsScoring> selectGamsScoringList(GamsScoring gamsScoring)
    {
        return gamsScoringMapper.selectGamsScoringList(gamsScoring);
    }

    /**
     * 新增评价打分记录
     *
     * @param gamsScoring 评价打分记录
     * @return 结果
     */
    @Override
    public int insertGamsScoring(GamsScoring gamsScoring)
    {
        gamsScoring.setCreateTime(DateUtils.getNowDate());
        return gamsScoringMapper.insertGamsScoring(gamsScoring);
    }

    /**
     * 修改评价打分记录
     *
     * @param gamsScoring 评价打分记录
     * @return 结果
     */
    @Override
    public int updateGamsScoring(GamsScoring gamsScoring)
    {
        return gamsScoringMapper.updateGamsScoring(gamsScoring);
    }

    /**
     * 批量删除评价打分记录
     *
     * @param ids 需要删除的评价打分记录主键
     * @return 结果
     */
    @Override
    public int deleteGamsScoringByIds(Integer[] ids)
    {
        return gamsScoringMapper.deleteGamsScoringByIds(ids);
    }

    /**
     * 删除评价打分记录信息
     *
     * @param id 评价打分记录主键
     * @return 结果
     */
    @Override
    public int deleteGamsScoringById(Integer id)
    {
        return gamsScoringMapper.deleteGamsScoringById(id);
    }
}
